package com.feign.config.enums;

import lombok.AllArgsConstructor;

/**
 * TODO
 *
 * @Author ZW
 * @Date 2022/12/28 17:37
 **/
@AllArgsConstructor
public enum FailureTime {
    //不同时间所需要的秒数
    WEEK(7 * 24 * 60 * 60 * 1000),
    DAY(24 * 60 * 60 * 1000),
    HOUR(60 * 60 * 1000),
    MINUTE(60 * 1000),
    SECOND(1000);
    final int time;

    public int getTime() {
        return time;
    }

}
